package com.views
{
	import com.assist.view.interfaces.IInitLoading;

	public class InitLoadingView extends Base implements IView
	{
		private var _il :IInitLoading;
		private var _limitForLogo:int = 2;
		
		public function InitLoadingView()
		{
			super();
		}
		
		public function show():void
		{
			--_limitForLogo;
			if (_limitForLogo-- == 0)
			{
				_il.content.gotoAndStop(2);
			}
			if (_limitForLogo < -1)
			{
				_limitForLogo = -1;
			}
			render();
		}
		
		public function close():void
		{
		}
		
		public function clear():void
		{
		}
		
		private function render() : void
		{
			if (_il == null)
			{
				_il = _view.getAssetsObject("InitLoading" + logoSuffix, "InitLoading") as IInitLoading;
				_il.tip = InitLoadingViewLang.Tip;
			}
			_popup.addView(this, _il.content);
			loading("");
			return;
		}
	}
}